home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / docshell / nsITextScroll.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  119 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsITextScroll.idl
  3.  */
  4.  
  5. #ifndef __gen_nsITextScroll_h__
  6. #define __gen_nsITextScroll_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsITextScroll */
  19. #define NS_ITEXTSCROLL_IID_STR "067b28a0-877f-11d3-af7e-00a024ffc08c"
  20.  
  21. #define NS_ITEXTSCROLL_IID \
  22.   {0x067b28a0, 0x877f, 0x11d3, \
  23.     { 0xaf, 0x7e, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c }}
  24.  
  25. /**
  26.  * The nsITextScroll is an interface that can be implemented by a control that
  27.  * supports text scrolling. 
  28.  */
  29. class NS_NO_VTABLE nsITextScroll : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITEXTSCROLL_IID)
  33.  
  34.   /**
  35.    * Scroll the view up or down by aNumLines lines. positive
  36.    * values move down in the view. Prevents scrolling off the
  37.    * end of the view.
  38.    * @param numLines number of lines to scroll the view by
  39.    */
  40.   /* void scrollByLines (in long numLines); */
  41.   NS_IMETHOD ScrollByLines(PRInt32 numLines) = 0;
  42.  
  43.   /**
  44.    * Scroll the view up or down by numPages pages. a page
  45.    * is considered to be the amount displayed by the clip view.
  46.    * positive values move down in the view. Prevents scrolling
  47.    * off the end of the view.
  48.    * @param numPages number of pages to scroll the view by
  49.    */
  50.   /* void scrollByPages (in long numPages); */
  51.   NS_IMETHOD ScrollByPages(PRInt32 numPages) = 0;
  52.  
  53. };
  54.  
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSITEXTSCROLL \
  57.   NS_IMETHOD ScrollByLines(PRInt32 numLines); \
  58.   NS_IMETHOD ScrollByPages(PRInt32 numPages); 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  61. #define NS_FORWARD_NSITEXTSCROLL(_to) \
  62.   NS_IMETHOD ScrollByLines(PRInt32 numLines) { return _to ScrollByLines(numLines); } \
  63.   NS_IMETHOD ScrollByPages(PRInt32 numPages) { return _to ScrollByPages(numPages); } 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  66. #define NS_FORWARD_SAFE_NSITEXTSCROLL(_to) \
  67.   NS_IMETHOD ScrollByLines(PRInt32 numLines) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByLines(numLines); } \
  68.   NS_IMETHOD ScrollByPages(PRInt32 numPages) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByPages(numPages); } 
  69.  
  70. #if 0
  71. /* Use the code below as a template for the implementation class for this interface. */
  72.  
  73. /* Header file */
  74. class nsTextScroll : public nsITextScroll
  75. {
  76. public:
  77.   NS_DECL_ISUPPORTS
  78.   NS_DECL_NSITEXTSCROLL
  79.  
  80.   nsTextScroll();
  81.  
  82. private:
  83.   ~nsTextScroll();
  84.  
  85. protected:
  86.   /* additional members */
  87. };
  88.  
  89. /* Implementation file */
  90. NS_IMPL_ISUPPORTS1(nsTextScroll, nsITextScroll)
  91.  
  92. nsTextScroll::nsTextScroll()
  93. {
  94.   /* member initializers and constructor code */
  95. }
  96.  
  97. nsTextScroll::~nsTextScroll()
  98. {
  99.   /* destructor code */
  100. }
  101.  
  102. /* void scrollByLines (in long numLines); */
  103. NS_IMETHODIMP nsTextScroll::ScrollByLines(PRInt32 numLines)
  104. {
  105.     return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107.  
  108. /* void scrollByPages (in long numPages); */
  109. NS_IMETHODIMP nsTextScroll::ScrollByPages(PRInt32 numPages)
  110. {
  111.     return NS_ERROR_NOT_IMPLEMENTED;
  112. }
  113.  
  114. /* End of implementation class template. */
  115. #endif
  116.  
  117.  
  118. #endif /* __gen_nsITextScroll_h__ */
  119.